package cn.iocoder.yudao.module.energy.controller.admin.report.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 能耗报告数据分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class EnergyReportDataPageReqVO extends PageParam {

    @Schema(description = "设备ID", example = "device123")
    private String deviceId;

    @Schema(description = "上报数据类型", example = "voltage")
    private String reportDataType;

    @Schema(description = "上报数据级别", example = "info")
    private String reportDataLevel;

    @Schema(description = "处理状态", example = "unprocessed")
    private String status;
    
    @Schema(description = "上传标识", example = "1")
    private Integer uploadType;
    
    @Schema(description = "是否只查询有上传标识的数据", example = "true")
    private Boolean uploadTypeExists;
    
    @Schema(description = "累计能耗最小值(kWh)", example = "100")
    private BigDecimal minEnergyConsumption;
    
    @Schema(description = "累计能耗最大值(kWh)", example = "500")
    private BigDecimal maxEnergyConsumption;

    @Schema(description = "上报数据时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportDataTime;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

} 